import myaxios from "../MyAxios";

import URLENV from "@/http/BaseUrl";
const BASEURL = URLENV.BASEURL;

const adminApi = {
  /**
   * 执行查询所有需要审核的业务
   * @param {Object} params {page:1,pagesize:10}
   * http://121.37.91.153:3010/admin/shenhe?page=1&pagesize=10&status=0
   */
  queryAllshenhe (params) {
    return myaxios.get(BASEURL + `/admin/shenhe?page=${params.page}&pagesize=${params.pagesize}&status=0`);
    // return myaxios.post(BASEURL + "/user/login", params);
  },
  /**
   * http://121.37.91.153:3010/admin/yinshi_queryid
   * @param {*} params 
   * @returns 
   */
  queryById (params) {
    let url = BASEURL + "/admin/yinshi_queryid"
    return myaxios.post(url, params)
  },
  /**
   * http://121.37.91.153:3010/admin/shenhe_delete
   * @param {*} params 
   */
  del (params) {
    let url = BASEURL + "/admin/shenhe_delete"
    return myaxios.post(url, params)
  },
  /**
   * http://121.37.91.153:3010/admin/shenhe_status
   * @param {*} params 
   * @returns 
   */
  shenhe (params) {
    let url = BASEURL + '/admin/shenhe_status'
    return myaxios.post(url, params)
  }
};

export default adminApi;
